/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.net.greenet.logmanage.nn;

import java.util.HashMap;
import java.util.Map;

/**
 * MessageType 类说明
 *
 * @author liangdelin
 */
public class GetMessageType {

    private static Map<String, String> messageType = new HashMap<>();

    /**
     * @return the messageType
     */
    public static Map<String, String> getMessageType() {
        if (messageType.isEmpty()) {
            initMap();
        }
        return messageType;
    }

    /**
     * @param aMessageType the messageType to set
     */
    public static void setMessageType(Map<String, String> aMessageType) {
        messageType = aMessageType;
    }

    public static void initMap() {
        messageType.put("0x00", "通用参数设置");
        messageType.put("0x01", "流量分析结果上报策略");
        messageType.put("0x02", "Web类流量管理策略");
        messageType.put("0x05", "VoIP类流量管理策略");
        messageType.put("0x06", "通用流量管理策略");
        messageType.put("0x07", "通用流量标记策略");
        messageType.put("0x08", "访问指定应用的用户统计策略");
        messageType.put("0x09", "流量镜像策略");
        messageType.put("0x0A", "应用自定义策略");
        messageType.put("0x40", "用户组归属分配策略");
        messageType.put("0x41", "Web信息推送策略");
        messageType.put("0x42", "一拖N信息推送用户管理策略");
        messageType.put("0x43", "应用层 DDoS 异常流量管理策略");
        messageType.put("0x45", "应用流量流向上报策略");
        messageType.put("0x85", "用户/应用策略信息下发");
        messageType.put("0x82", "IP地址段用户信息下发");
        messageType.put("0xC4", "DPI设备状态查询请求");
        messageType.put("0xC7", "协议特征库下发策略");
        messageType.put("0xC8", "URL分类库更新策略");
        messageType.put("0xC9", "应用名称对应表更新通知");
        messageType.put("0xCA", "IP地址库下发策略");
        messageType.put("0xCF", "HTTPGET报文清洗黑白名单下发策略");
        messageType.put("0xC0", "DPI设备通用信息下发");
        messageType.put("0xC1", "DPI模块心跳信息");
        messageType.put("0xC2", "DPI模块策略同步请求");
        messageType.put("0xC3", "DPI模块策略同步响应");
        messageType.put("0xC4", "DPI设备状态查询请求");
        messageType.put("0xC5", "DPI设备状态查询回应（静态消息）");
        messageType.put("0xC6", "DPI设备状态查询回应（动态消息）");
        messageType.put("0x81", "AAA信息下发");
        messageType.put("0x83", "AAA反查");
    }
}
